<template>
    <div class="box">
      <header class="header">
        <!-- <ul>
          <li @click="back"><i class="iconfont icon-jiantouarrowhead7"></i></li> 
          <li><h5>成长记录</h5></li>
          <router-link to="/uploding1" tag="li"><p>添加</p></router-link>
        </ul> -->
        <mt-header title="">
            <router-link to="../Timenotes" slot="left">
              <mt-button icon="back" style="color:white"></mt-button>
              <mt-button @click="handleClose" style="color:white;margin-left:35%">成长记录</mt-button>
            </router-link>
          </mt-header>
      </header>
       <div class="content">
        <div class="con_title">
          <router-link to="/recordList" tag="span">记录列表</router-link>
          <router-link to="/height" tag="span">身高曲线</router-link>
          <router-link to="/weight" tag="span">体重曲线</router-link>
          <router-link to="/headSize" tag="span">头围曲线</router-link>
        </div>
        <div class="con_con">
          <router-view></router-view>
        </div>
      </div>

    </div>
  
</template>

<script>
import axios from 'axios'

export default {
  name:'Growth',
  data () {
    return {
      growthlist: []
    }
  },
  methods: {
    back () {
      this.$router.go(-1)
    },
    handleClose(){

    }
  }
  // created () {
  //   axios.get('sgj/article/').then(data => {
  //     console.log(data)
  //     console.log(data.data.returnValue[1])
  //     this.growthlist=data.data.returnValue[1]
  //   })
  // }
}
</script>

<style lang="scss" scoped>
@import '@/lib/reset.scss';
.container .box .header {
  @include rect(100%, 0.4rem);
  @include background-color(#DFDFDF);
  ul {
    @include rect (95%, 100%);
    // background:red;
    margin:0 auto;
    @include flexbox();
    @include justify-content(space-between);
    @include align-items();
    li {
      i{
        @include font-size(0.15rem);
        @include text-color(#101010);
      }
      h5 {
        @include font-size(0.15rem);
        @include text-color(#101010);
        @include font-weight(100);
      }
    }
  }
}
.content {
  .con_title {
    ul {
      @include rect(100%, 10%);
      @include flexbox();
      @include justify-content(space-around);
      @include align-items();
      li {
        p {color:#666;font-size: 0.14rem;}
      }
    }
  }
}
.con_title span{
  margin:4%;
  font-size:14px;
  height: 30px;
}
.con_title{
  margin: 4% 0;
  padding:0 2%;
  
}
.con_title .router-link-active{
  border-bottom:2px solid #ccc;
}
</style>
